<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组解构</title>
</head>
<body>
<script>
    let arr = [1,2,3,4];
    const [a,b,c,d] = arr;
    console.log(a);
    let arr1 = new Array(1,2,3)
    console.log(arr1);
</script>
</body>
</html>